package com.jeesite.modules.stock.dao;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.jeesite.modules.stock.dao.mapper.StockWeekMapper;
import com.jeesite.modules.stock.dto.StockQueryDTO;
import com.jeesite.modules.stock.entity.StockWeekEntity;

@Component
public class StockWeekDao {

	@Autowired
	StockWeekMapper stockWeekMapper;
	
	public List<StockWeekEntity> getKlineDataOfDay(String stockCode, String startDate, String endDate) {
		StockQueryDTO param = new StockQueryDTO();
		param.setStockCode(stockCode);
		param.setStartDate(startDate);
		param.setEndDate(endDate);
		return stockWeekMapper.findList(param);
	}
}
